package com.example.cafe.work.mapper;

import com.example.cafe.work.dto.OrderDisplay;
import com.example.cafe.work.model.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hua
 * @since 2024-09-16
 */
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<OrderDisplay> queryOrder(@Param("state") String state,
                                  @Param("userId") String userId,
                                  @Param("start") int start,
                                  @Param("size") int size);

    int consume(@Param("list") ArrayList<String> list);

    int ChargeBack(@Param("list") ArrayList<String> list);
}
